<html>
<head>
<title>simpleSetText.htm</title>
</head>
<body>
<body>
<form name="appform">
<input type="button" onclick="a='bce';alert(a);document.appform.titlelength.value=a" value="length:">
<label for="titlelength"></label> 
<input type="text" name="titlelength" size="10"> 
<br /> 
</form>
</html>
